package com.cdpm.common.utils;

import java.util.Collection;

/**
 * @description:
 * @author: longjy
 * @create: 2024-08-22 17:51
 **/
public class CollectionUtil {
    public static boolean isNotEmpty(Collection collection){
        boolean flag = false;
        if(collection!=null && collection.size()>0){
            flag = true;
        }
        return flag;
    }

    public static boolean isEmpty(Collection collection){
        boolean flag = false;
        if(collection==null || collection.size()==0){
            flag = true;
        }
        return flag;
    }
}
